/**
 *  Authors:
 *  Scott Renaud
 *  Kevin Carrington
 * 
 *  February 5 - 2012
 * 
 *  Team 4 - Iteration 1
 *  COMP 354 / Winter 2012
 *  
 *  =============================
 *  
 *  Task.java
 *  
 *  This class creates a Task object that stores
 *  related information.
 *  
 *  Offers functionality to access and modify this said data.
 *  
 */

package taskManagmentSystem;

public class Task {
	
	// Class properties
	private int taskID = 0;
	private String title = "";
	private String description = "";
	private int duration = 0;
	private String deliverable = "";
	private String deadlineDate;
	private String person = "";

	// Accessors and mutators  for the Task object
	public int getTaskID() {
		return taskID;
	}

	public void setTaskID(int taskID) {
		this.taskID = taskID;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public String getDeliverable() {
		return deliverable;
	}

	public void setDeliverable(String deliverable) {
		this.deliverable = deliverable;
	}

	public String getDeadlineDate() {
		return deadlineDate;
	}

	public void setDeadlineDate(String deadlineDate) {
		this.deadlineDate = deadlineDate;
	}

	public String getPerson() {
		return person;
	}

	public void setPerson(String person) {
		this.person = person;
	}
	
	// overriding the toString method
	public String toString()
	{
		return taskID + ", " + title + ", " + description + ", " + duration + ", " + deliverable + ", " + deadlineDate + ", " + person;
	}
}
